package com.java.CarDemo;

public class Car implements rent{
    private int carNumber;
    private String brand;
    private String color;
    private double price;
    private float output;
    private boolean rented;


    public Car() {
    }

    public Car(int carNumber, String brand, String color, double price, float output) {
        this.carNumber = carNumber;
        this.brand = brand;
        this.color = color;
        this.price = price;
        this.output = output;
        this.rented = false;
    }

    public int getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(int carNumber) {
        this.carNumber = carNumber;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public float getOutput() {
        return output;
    }

    public void setOutput(float output) {
        this.output = output;
    }


    public boolean getRented() {
        return rented;
    }

    public void setRented(boolean rented) {
        this.rented = rented;
    }
    @Override
    public String toString() {
        return "Car{" +
                "carNumber=" + carNumber +
                ", brand='" + brand + '\'' +
                ", color='" + color + '\'' +
                ", price=" + price +
                ", output=" + output +
                '}';
    }

    @Override
    public float rentPrice() {
        return 0;
    }
}
